<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:67:"F:\wamp\www\shops\public/../application/index\view\index\index.html";i:1558426696;s:59:"F:\wamp\www\shops\application\index\view\common\header.html";i:1558426485;s:66:"F:\wamp\www\shops\application\index\view\common\footer_button.html";i:1558426549;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta content="telephone=no" name="format-detection">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<title> </title>
	<link rel="stylesheet" type="text/css" href="/static/Css/common.css" />
	<link rel="stylesheet" type="text/css" href="/static/Css/ripple.css" />
	<link rel="stylesheet" type="text/css" href="/static/Js/layer_mobile/need/layer.css" />
	<script type="text/javascript" src="/static/Js/layer_mobile/layer.js"></script>
	<script type="text/javascript">
		var docEl = document.documentElement;
		function getSize() { // 获取屏幕的宽度
			var screenWidth = docEl.clientWidth;
			docEl.style.fontSize = (screenWidth / (750 / 40)) + 'px';
		}
		getSize(); // 页面加载完执行一次
		window.onresize = function() {
			getSize();
		}

		// 跳转
		function redirect(url){
			window.location.href = url;
		}

		// 会员提示
		function memberTip(e){
			if (e == 1) {
				msgTipUrl('请先申请代理商身份','<?php echo url("Index/applyRegist"); ?>');
			} else {
				msgTip('申请正在审核中');
			}
		}

		// 自定义提示
		function msgTip(msg){
			layer.open({
				content:msg,
				skin: 'msg',
				time: 3, // 3s
			});
		}

		// 自定义弹窗
		function msgAlert(msg){
			layer.open({
				content:msg,
				btn:['确定']
			});
		}

		// 自定义提示+跳转
		function msgTipUrl(msg,url){
			layer.open({
				content:msg,
				btn:['确定'],
				yes: function(index){
					layer.close(index);
					if(url){
						redirect(url);
					}
				}
			});
		}
	</script>
<style>.teamPerformance,.myPerformance{display: none;}.team{padding-top: 2.2rem;}</style>
</head>
<body>
<div id="home">
    <div class="header"></div>
    <div class="layout">
        <div id="module">


        </div>
    </div>
			<div class="footer" <?php if(\think\Session::get('user.role')===0): ?>id="member"<?php endif; ?>>
				<div>
					<button class="ripple" onclick="redirect('<?php echo url('Product/index'); ?>');">
						<div <?php if(isset($spider["index"])): if($spider["index"] == '2'): ?> style="color: #aaa2fb;"<?php endif; endif; ?>>
							<p><img src="/static/Images/<?php if(isset($spider["index"])): if($spider["index"] == '2'): ?>light_2.png<?php else: ?>gray_2.png<?php endif; else: ?>gray_2.png<?php endif; ?>" alt="商品" /></p>商品
						</div>
					</button>
					<?php if((!session('?user')) or (\think\Session::get('user.role')>0)): ?>
					<button class="ripple" onclick="<?php if(isset($tip)): if($tip): ?>memberTip(<?php echo $tip; ?>)<?php else: ?>redirect('<?php echo url('Product/myCart'); ?>')<?php endif; else: ?>redirect('<?php echo url('Product/myCart'); ?>')<?php endif; ?>;">
						<div<?php if(isset($spider["index"])): if($spider["index"] == '4'): ?> style="color: #aaa2fb;"<?php endif; endif; ?>>
							<p><img src="/static/Images/<?php if(isset($spider["index"])): if($spider["index"] == '4'): ?>light_3.png<?php else: ?>gray_3.png<?php endif; else: ?>gray_3.png<?php endif; ?>" alt="发布" /></p>发布
						</div>
					</button>
					<?php endif; ?>
					<button class="ripple" onclick="redirect('<?php echo url('Person/index'); ?>');">
						<div<?php if(isset($spider["index"])): if($spider["index"] == '5'): ?> style="color: #aaa2fb;"<?php endif; endif; ?>>
							<p><img src="/static/Images/<?php if(isset($spider["index"])): if($spider["index"] == '5'): ?>light_4.png<?php else: ?>gray_4.png<?php endif; else: ?>gray_4.png<?php endif; ?>" alt="个人中心" /></p>个人中心
						</div>
					</button>
				</div>
			</div>
		</div>
	</body>
</html>